﻿<?php
require_once('db.php');

if($_POST) {
	$id = $_POST['adId'];
}
$query = mysql_query("SELECT * FROM Stancja WHERE Id=$id");
$result = mysql_fetch_array($query);

?>

<h2><?php echo $result['Tytul']; ?></h2>
<small>Data dodania: <?php echo $result['Data_dodania']; ?></small>
<p><span>Cena: <?php echo $result['Cena']; ?> zł</span><br /><?php echo $result['Tresc']; ?></p>
